namespace DeleteOnTimeTool.Models
{
    public enum TimeBasis
    {
        CreatedTime = 0,
        ModifiedTime = 1
    }

    public class DeleteTask
    {
        public string Name { get; set; } = "";
        public string Path { get; set; } = "";
        public bool IncludeSubdirectories { get; set; } = true;
        public TimeBasis Basis { get; set; } = TimeBasis.ModifiedTime;
        public int OlderThanDays { get; set; } = 30;
        public DateTime? DeleteBeforeDate { get; set; }
            = null; // 如果设置，则优先按日期
        public string SearchPattern { get; set; } = "*"; // 通配符
        public bool Enabled { get; set; } = true;
    }
}


